package com.cgwx.mapper;

import com.cgwx.data.dto.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@Mapper
public interface UsUserMapper {


    List<String> getUserInfoByDept(@Param("deptIds") String deptIds);

    List<Map> getDeptInfo(@Param("depts") String depts);

    String getDeptNameById(@Param("deptId") String deptId);

    List<String> getPartnersByAccounts(@Param("accounts")List<String> accounts);



    List<String> queryUsersByRoleId(@Param("roleId")String roleId);

    List<String> queryUsersByDeptId(@Param("deptId")String deptId);

    List<String> queryUsersByPostId(@Param("postId")Integer postId);

    String queryUsersByUserId(@Param("userId") String userId);

    String queryChargeDeptByUserId(@Param("userId") String userId);

    UserInfo queryDeptByUserId(@Param("userId") String userId);


    List<UserInfo> queryUsersByUserName(@Param("userName") String userName);

    UserInfo queryInfoByUserId(@Param("userId") String userId);

    void addSignature(@RequestParam("userId") String userId);

    String queryTokenByUserId(@Param("userId") String userId);

    List<UserInfo> queryUserInfoByDeptId(String deptId);
}
